
package org.codebase.spring.framework.aop.xml;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * 切面
 * *************************************************
 * ClassName:Audience
 *

 * @author:xiaozhichao
 * @date:2018年9月3日 *************************************************
 */
public class Audience {

    public void silenceCellPhones() {
        System.out.println("silenceCellPhones");
    }

    public void takeSeats() {
        System.out.println("takeSeats");
    }

    public void applause() {
        System.out.println("applause");
    }

    public void demandRefund() {
        System.out.println("demandRefund");
    }

    public void around(ProceedingJoinPoint jp) {
        try {
            System.out.println("around before");
            jp.proceed();
            System.out.println("around after");
        } catch (Throwable e) {
            e.printStackTrace();

        }
    }

    public void performHasArgs(String arg) {
        System.out.println("performHasArgs.arg." + arg);
    }
}
